package com.west_traveler.entity.entity_editor;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Description: 精品听单二级接口实体类
 * Date:2016年12月07日10:53
 *
 * @author: 刘悦.
 */

public class SpecialListenList implements Parcelable{
    private int ret;
    private List<SpecialList> list = new ArrayList<>();
    private String msg;
    private SpecialInfo info;



    public SpecialListenList() {
    }

    protected SpecialListenList(Parcel in) {
        ret = in.readInt();
        list = in.createTypedArrayList(SpecialList.CREATOR);
        msg = in.readString();
        info = in.readParcelable(SpecialInfo.class.getClassLoader());
    }



    public int getRet() {
        return ret;
    }

    public void setRet(int ret) {
        this.ret = ret;
    }

    public List<SpecialList> getList() {
        return list;
    }

    public void setList(List<SpecialList> list) {
        this.list = list;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public SpecialInfo getInfo() {
        return info;
    }

    public void setInfo(SpecialInfo info) {
        this.info = info;
    }

    public SpecialListenList(int ret, List<SpecialList> list, String msg, SpecialInfo info) {
        this.ret = ret;
        this.list = list;
        this.msg = msg;
        this.info = info;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(ret);
        parcel.writeTypedList(list);
        parcel.writeString(msg);
        parcel.writeParcelable(info, i);
    }
    public static final Creator<SpecialListenList> CREATOR = new Creator<SpecialListenList>() {
        @Override
        public SpecialListenList createFromParcel(Parcel in) {
            return new SpecialListenList(in);
        }

        @Override
        public SpecialListenList[] newArray(int size) {
            return new SpecialListenList[size];
        }
    };
}
